package com.lee

class User {

    String name  //姓名
    Integer age  //年龄
    String sex   //性别
    String addr  //来自哪里
    Date birth  //生日
    BigDecimal weight //体重

    static constraints = {

        name nullable: false
        age nullable: false,range: 1..100
        sex nullable: false
        addr nullable: false
        birth nullable: false
        weight scale: 2

    }
}
